@import "./tools.less";

.content {
  .img {
    height: 150px;
    width: 150px;
    overflow: hidden;
    background-color: #eee;
    border-radius: 50%;
    margin: 30px 0 0 100px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  form {
    padding: 40px 100px;
    position: relative;
    overflow: hidden;
    .grid {
      display: grid;
      max-width: 220px;
      .file-input {
        border-radius: 5px;
        border: 1px solid @tmColor;
        background-color: #fff;
        font-size: 16px;
        color: @hvColor;
        &::file-selector-button {
          border: 0;
          background-color: @tmColor;
          color: #fff;
          font-size: 16px;
          font-weight: 500px;
        }
        &::file-selector-button:hover {
          cursor: pointer;
        }
        &:hover {
          cursor: pointer;
        }
      }
    }
    .button {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background-color: rgb(20, 20, 20);
      border: none;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
      cursor: pointer;
      transition-duration: 0.3s;
      overflow: hidden;
      position: absolute;
      top: 35px;
      left: 450px;
      transform: translateX(-50%);
      .svgIcon {
        width: 12px;
        transition-duration: 0.3s;
        path {
          fill: white;
        }
      }
      &:hover {
        width: 140px;
        border-radius: 50px;
        transition-duration: 0.3s;
        background-color: rgb(181, 160, 255);
        align-items: center;
        .svgIcon {
          /* width: 20px; */
          transition-duration: 0.3s;
          transform: translateY(-200%);
        }
      }
      &::before {
        position: absolute;
        bottom: -20px;
        content: "上传头像";
        color: white;
        /* transition-duration: .3s; */
        font-size: 0px;
      }
      &:hover::before {
        font-size: 13px;
        opacity: 1;
        bottom: unset;
        /* transform: translateY(-30px); */
        transition-duration: 0.3s;
      }
    }
  }
  ul {
    li {
      font-size: 24px;
      color: #666;
      height: 55px;
      padding: 27px 0 0 100px;
      border-top: 1px solid @tmColor;
      button {
        color: white;
        float: right;
        margin-right: 50px;
        display: none;
        width: 75px;
        height: 35px;
        background-color: @hvColor;
        border-color: transparent;
        &:hover {
          background-color: @tmColor;
          cursor: pointer;
        }
      }
      &:hover {
        button {
          display: inline-block;
        }
      }
      &:last-child {
        button {
          display: inline-block;
          width: 150px;
          height: 50px;
          margin-right: 200px;
          background-color: rgba(170, 54, 12, 0.61);
          border-color: transparent;
          a {
            color: white;
            font-size: 18px;
          }
          &:hover {
            background-color: red;
          }
          &:last-child {
            background-color: @hvColor;
            &:hover {
              background-color: @tmColor;
            }
          }
        }
      }
    }
  }
}
